// 存token
const setHfSession = (token) => {
  localStorage.setItem('hfSession', token)
}
// 移除token
const removeHfSession = () => {
  localStorage.removeItem('hfSession')
}
// 获取token
const getHfSession = () => {
  return localStorage.getItem('hfSession')
}

// 存temp判断是否在signUp页
const setSignUpTemp = () => {
  localStorage.setItem('signUpTemp', true)
}

// 移除temp
const removeSignUpTemp = () => {
  localStorage.removeItem('signUpTemp')
}

// 获取temp
const getSignUpTemp = () => {
  return localStorage.getItem('signUpTemp')
}

// 存储修改密码需要返回的页面
const setBackPage = (backPage) => {
  sessionStorage.setItem('backPage', backPage)
}

// 移除backPage
const removeBackPage = () => {
  sessionStorage.removeItem('backPage')
}

// 获取backPage
const getBackPage = () => {
  return sessionStorage.getItem('backPage')
}

// 存储会议信息
const setCfInfo = (cfInfo) => {
  sessionStorage.setItem('cfInfo', cfInfo)
}

// 移除会议信息
const removeCfInfo = () => {
  sessionStorage.removeItem('cfInfo')
}

// 获取会议信息
const getCfInfo = () => {
  return sessionStorage.getItem('cfInfo')
}

export default {
  setHfSession,
  removeHfSession,
  getHfSession,
  setSignUpTemp,
  removeSignUpTemp,
  getSignUpTemp,
  setBackPage,
  removeBackPage,
  getBackPage,
  setCfInfo,
  removeCfInfo,
  getCfInfo
}
